package com.example.qt.ptplatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDate;

@Data
@TableName("user_assessments")
public class UserAssessment {

    @TableId(value = "assessment_id", type = IdType.AUTO)
    private Integer assessmentId;  // 考核记录的ID

    private Integer userId;  // 用户ID，关联到users表

    private LocalDate assessmentPeriodStart;  // 考核周期开始时间
    private LocalDate assessmentPeriodEnd;    // 考核周期结束时间

    private Double uploadAmountChange;        // 上传量变化
    private Double downloadAmountChange;      // 下载量变化
    private Double seedPointsChange;          // 保种积分变化
    private Double shareRate;                 // 分享率

    private String assessmentStatus;          // 考核结果（合格、不合格）

    private LocalDate assessmentDate;         // 考核生成时间
}
